class A:
    def a(self, value):
        print(value)

    def b(self):
        return -1


if __name__ == '__main__':
    b = A()
    c = getattr(b, 'a')
    c(1)
    d = getattr(b, 'b')
    e = d()
    print(d())